﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace Concordia.Models.cs_Registration
{
    public class cs_Registration_Page2
    {
        public int BorrowerKey { get; set; }
        [Required]
        [RegularExpression(@"^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.(([0-9]{1,3})|([a-zA-Z]{2,3})|(aero|coop|info|museum|name))$", ErrorMessage = "Invalid Email")]
        public string Email { get; set; }
        
        [Required]
        public string Username { get; set; }

        [Required]
        public string Password { get; set; }

        [Required]
        [Display(Name = "Password Confirmation")]
        public string ConfirmPassword { get; set; }

        [Required]
        [Display(Name = "Security Question")]
        public int SecurityQuestion1 { get; set; }

        [Required]
        [Display(Name = "Security Question")]
        public int SecurityQuestion2 { get; set; }

        [Required]
        [Display(Name = "Security Question")]
        public int SecurityQuestion3 { get; set; }

        [Required]
        [Display(Name = "Security Answer")]
        public string SecurityAnswer1 { get; set; }

        [Required]
        [Display(Name = "Security Answer")]
        public string SecurityAnswer2 { get; set; }

        [Required]
        [Display(Name = "Security Answer")]
        public string SecurityAnswer3 { get; set; }

    }
}